package com.redis.study.stream.util;

/**
 * @author ljt
 * @description:
 * @date 2024/5/20 16:22
 */
public class IdUtil {

    private final static SnowflakeIdWorker snowflakeIdWorker;

    static {
        snowflakeIdWorker = new SnowflakeIdWorker(1, 1);
    }


    public static long genId() {
        return snowflakeIdWorker.nextId();
    }

}
